#include "complex.cpp"
#include <iostream>

int main()
{

Complex a=Complex();
Complex b=Complex(1.2,3.7);
Complex s=a+b;
std::cout<<"s.re= "<<s.getReal()<<" s.im= "<<s.getImag()<<"\n";
a.setReal(2012.12);
s=a+b;
std::cout<<"s.re= "<<s.getReal()<<" s.im= "<<s.getImag()<<"\n";
Complex sd=a+2;
std::cout<<"sd.re= "<<sd.getReal()<<" sd.im= "<<sd.getImag()<<"\n";
Complex am=Complex(2,4);
Complex bm=Complex(2,3);
Complex sm=am-bm;
std::cout<<"sm.re= "<<sm.getReal()<<" sm.im= "<<sm.getImag()<<"\n";
Complex smd=am-2;
smd.setImag(22.2);
am.setReal(2);
std::cout<<"smd.re= "<<smd.getReal()<<" smd.im= "<<smd.getImag()<<"\n";
Complex inm=am*bm;
std::cout<<"inm.re= "<<inm.getReal()<<" inm.im= "<<inm.getImag()<<"\n";
inm=inm*2;
std::cout<<"inm.re= "<<inm.getReal()<<" inm.im= "<<inm.getImag()<<"\n";
inm=am/bm;
std::cout<<"inm.re= "<<inm.getReal()<<" inm.im= "<<inm.getImag()<<"\n";
inm=am/2;
std::cout<<"inm.re= "<<inm.getReal()<<" inm.im= "<<inm.getImag()<<"\n";
Complex putered=am^2;
std::cout<<"putere.re= "<<putered.getReal()<<" putere.im= "<<putered.getImag()<<"\n";
Complex nr1=Complex(2,2),nr2=Complex(2,2);
int x=0;
x=nr1<nr2;
if (x==1)
	std::cout<<"Adevarat\n";
else
	std::cout<<"Fals\n";
x=nr1<2;
if (x==1)
	std::cout<<"Adevarat\n";
else
	std::cout<<"Fals\n";
x=nr1<=nr2;
if (x==1)
	std::cout<<"Adevarat\n";
else
	std::cout<<"Fals\n";

x=nr1<=2;
if (x==1)
	std::cout<<"Adevarat\n";
else
	std::cout<<"Fals\n";
x=nr1>nr2;
if (x==1)
	std::cout<<"Adevarat\n";
else
	std::cout<<"Fals\n";
x=nr1>2;
if (x==1)
	std::cout<<"Adevarat\n";
else
	std::cout<<"Fals\n";
x=nr1>=nr2;
if (x==1)
	std::cout<<"Adevarat\n";
else
	std::cout<<"Fals\n";
Complex numar=Complex(4,4);
s=++numar;
std::cout<<"numar.re= "<<s.getReal()<<" numar.im= "<<s.getImag()<<"\n";
s=--numar;
std::cout<<"numar.re= "<<s.getReal()<<" numar.im= "<<s.getImag()<<"\n";

Complex p1=Complex();

std::cin>>p1;
std::cout<<p1<<"\n";
Complex *z=new Complex();
Complex zz=Complex(&z);



return 0;
}
